package com.mryan.auth.service;

import com.mryan.auth.pojo.Message;

import javax.servlet.http.HttpServletRequest;

/**
 * @description： AuthService
 * @Author MRyan
 * @Date 2021/6/14 16:53
 * @Version 1.0
 */
public interface AuthService {

    Message addAuthInfo(HttpServletRequest request);

    Message bindAuthByDeviceInfo(String deviceInfo, String qrCodeId);

    Message getTemporaryToken(String accountName, String qrCodeId, boolean isScan);

    Message getToken(String temporaryToken, String accountName, String qrCodeId);

    Message getAccountInfoByToken(String token);

    Message getAuthInfo(String token);
}
